package com.lichuang.fruitvarietysm.manage.feignclient;

import com.lichuang.fruitvarietysm.manage.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user")
public interface UserFeignClient {

    @RequestMapping("/user/getCurrentUser")
    User getCurrentUser(@RequestParam(value = "loginToken") String loginToken);
}
